package homework.clazz;

public class Date {
    int day;
    int month;
    int year;
    Date(){
        day=19;
        month=11;
        year=2024;
    }
    Date(int co_year,int co_month,int co_day){
        day=co_day;
        month=co_month;
        year=co_year;
    }

    public static void main(String[] args) {
        System.out.println("------Date test------");
        Date myDate=new Date();
        System.out.println("Date created by Date():"+myDate.year+"-"+myDate.month+"-"+myDate.day);
        Date myDate1=new Date(2024,11,19);
        System.out.println("Dat created by Date(year,moth,day)"+myDate1.year+"-"+myDate1.month+"-"+myDate1.day);

    }
}
